#ifndef DATE_H
#define DATE_H

#include <iostream>
using std::ostream;
using std::istream;
class Date{
   int month;
   int day;
   int year;
	 static const int days[];
   void helpIncrement();
public:
   Date(int m=1,int d=1,int y=1900);
   void setDate(int,int,int);
   Date &operator++();
   Date operator++(int);
   const Date &operator+=(int);
   bool leapYear(int)const;
   bool endOfMonth(int)const;
   friend ostream &operator<<(ostream&,const Date&);
	 friend istream &operator>>(istream&,Date&);
	 void aduna(int);
	 void scade(int);
};

#endif

